import Vue from 'vue'
import Router from 'vue-router'
import login from '@/components/Login'
import home from '../components/Home.vue'
import trafficLine from '@/components/trafficLine'
import trafficCar from '@/components/trafficCar'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: login,
    },
    {
      path: '/home/',
      component: home,
      children: [
        {
          path: 'trafficLine',
          name: 'trafficLine',
          component: trafficLine
        },
        {
          path: 'trafficCar',
          name: 'trafficCar',
          component: trafficCar
        }


      ]

    }
  ]
})
